﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace Pc_Vision.View_Datalayer_Site
{
    public partial class Start : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void fn_GetCategories(object sender, EventArgs e)
        {

            DAOFactorys.DAOcategorie daoCat = new DAOFactorys.DAOcategorie();
            ArrayList result = daoCat.GetAllCategories();


            string li = "";
            foreach (Model.Categorie cat in result)
            {
                li += "<li><a href='#'>" + cat.categorieName + "</a></li>";
            }
            lblProductValue.Text = li;
        }

        public void fn_GetActies(object sender, EventArgs e)
        {
            DAOFactorys.DAOactie daoActie = new DAOFactorys.DAOactie();
            ArrayList result = daoActie.GetAllActies();

            string li = "";

            foreach (Model.Actie actie in result)
            {
                li += "<li><a href='#'>" + actie.actieNaam + "</a></li>";
            }
            lblActieValue.Text = li;
        }
    }
}